package com.heatup.apt.common.util.Netty;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageDecoder;

import java.util.List;

/**
 * Created by blank on 2017/11/16 下午5:54
 */
public class IntegerToStringDecoder extends MessageToMessageDecoder<Integer> {
    @Override
    protected void decode(ChannelHandlerContext channelHandlerContext, Integer in, List<Object> out) throws Exception {

        out.add(String.valueOf(in));
    }
}
